
class Oncecoursedto {
  int code;
  String msg;
  DataBean data;

  static Oncecoursedto fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    Oncecoursedto oncecoursedtoBean = Oncecoursedto();
    oncecoursedtoBean.code = map['code'];
    oncecoursedtoBean.msg = map['msg'];
    oncecoursedtoBean.data = DataBean.fromMap(map['data']);
    return oncecoursedtoBean;
  }

  Map toJson() => {
    "code": code,
    "msg": msg,
    "data": data,
  };
}


class DataBean {
  String courseName;
  int teacherId;
  int classesId;
  int whatDay;
  int sortNum;
  bool canSign;

  static DataBean fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    DataBean dataBean = DataBean();
    dataBean.courseName = map['courseName'];
    dataBean.teacherId = map['teacherId'];
    dataBean.classesId = map['classesId'];
    dataBean.whatDay = map['whatDay'];
    dataBean.sortNum = map['sortNum'];
    dataBean.canSign = map['canSign'];
    return dataBean;
  }

  Map toJson() => {
    "courseName": courseName,
    "teacherId": teacherId,
    "classesId": classesId,
    "whatDay": whatDay,
    "sortNum": sortNum,
    "canSign": canSign,
  };

}